﻿using System;

namespace Silversocial.Client.Modules
{
    public class DummyLoginDataProvider : ILoginDataProvider
    {
        public event EventHandler<ValidateUserCompletedEventArgs> ValidateUserCompleted = (s,e) => {};

        public void ValidateUser(User user)
        {
            if (user.Username == "neil" && user.Password == "neil")
            {
                this.ValidateUserCompleted(this, new ValidateUserCompletedEventArgs(true));
            }
            else
            {
                this.ValidateUserCompleted(this, new ValidateUserCompletedEventArgs(false));
            }
        }
    }
}
